package cn.com.sise.pojo;

import java.sql.Time;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Summary {
    private Integer summaryId;
    private String type;
    private String learningTime;
    private Integer userId;

    public Integer getSummaryId() {
        return summaryId;
    }

    public void setSummaryId(Integer summaryId) {
        this.summaryId = summaryId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLearningTime() {
        return learningTime;
    }

    public void setLearningTime(Timestamp learningTime) {
        this.learningTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(learningTime);
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "summary{" +
                "summaryId=" + summaryId +
                ", type='" + type + '\'' +
                ", learningTime=" + learningTime +
                ", userId=" + userId +
                '}';
    }
}
